package com.irdstudio.basic.framework.core.exception;

public class BizException extends Exception {

	private static final long serialVersionUID = 7886447379508372350L;

	public static final String MESSAGE = "应用系统业务异常";

	private String errorCode;

	public BizException() {
		super(MESSAGE);
	}

	public BizException(String message) {
		super(message);
	}

	public BizException(String errorCode, String message) {
		super(message);
		this.errorCode = errorCode;
	}

	public BizException(String message, Throwable cause) {
		super(message, cause);
	}

	public BizException(String errorCode, String message, Throwable cause) {
		super(message, cause);
		this.errorCode = errorCode;
	}

	public BizException(Throwable cause) {
		super(cause);
	}

	public String getErrorCode() {
		return errorCode;
	}
}
